package com.my.study.designPatterns.compoundPattern;

public class CounterDuckFactory extends AbstractDuckFactory {

    @Override
    public Quackable redDuck() {
        return new QuackCounter(new RedHeadDuck());
    }

    @Override
    public Quackable yellowDuck() {
        return new QuackCounter(new YellowHeadDuck());
    }

    @Override
    public Quackable greenDuck() {
        return new QuackCounter(new GreenHeadDuck());
    }
}
